package com.c2soft.nepalcmx.services;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



import com.c2soft.nepalcmx.command.NetPositionCommand;
import com.c2soft.nepalcmx.dao.ProfitLossDAO;



@Service
public class ProfitLossService {

	@Autowired
	private ProfitLossDAO profitLossDAO;
	

	
public List<NetPositionCommand> getProfitLoss(String userId) {
	
	return profitLossDAO.findProfitLoss(userId);
}

public List<NetPositionCommand> getBrokerProfitLoss(String brokerId) {
	
	return profitLossDAO.findBrokerProfitLoss(brokerId);
}

public List<NetPositionCommand> getExchangeProfitLoss() {
	
	return profitLossDAO.findExchangeProfitLoss();
}


}
